<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html >
<head>

    <title>等一哈</title>
    <style>
        p{
            text-align: center;
            font-size: 20px;
        }
        span{
            color: red;

        }
    </style>
</head>
<body>
<div>
<p>恭喜您注册成功阿！
   <%=request.getAttribute("msg") %>
    <span id="time">3</span>S之后跳转到登录主页.......
</p>
</div>
<script>
    var second=3;
    function timeShow() {
        second--;
        if(second<=0){
            location.href="${pageContext.request.contextPath}/jsp/index.jsp"
        }

        var time= document.getElementById("time");
        time.innerText=second;

    }
    setInterval(timeShow,1000);




</script>
</body>
</html>